#!/usr/bin/env python
# -*- coding:utf-8 -*-
# author : liuyu
# date  2018/11/24

import pathlib
import time,datetime

# endtime= '2018-11-25 01:35:26'
# endtime2= '2018-11-25 01:39:26'
# d1=time.mktime(time.strptime(endtime,"%Y-%m-%d %H:%M:%S"))
# d2=time.mktime(time.strptime(endtime2,"%Y-%m-%d %H:%M:%S"))
# datas = d2-d1
# print(datas)

# endtime= '2018-11-25 01:35:26'
# endtime2= '2018-11-25 03:37:16'
# d1=datetime.datetime.strptime(endtime,"%Y-%m-%d %H:%M:%S")
# d2=datetime.datetime.strptime(endtime2,"%Y-%m-%d %H:%M:%S")
# datas = d2-d1
# sec = datas.seconds
# if sec<60:
#     infos="{} 秒".format(sec)
# elif sec<3600:
#     infos=":".join(datas.__str__().split(":")[1:3])
# else:
#     infos=datas
# print(infos)

ipsa=[{'192.168.5.49': {'message': 'Authentication failed.', 'code': 1, 'results': {}}}]

ns="    dd  sfda ad s af   "
news = ns.strip(" ")
print(len(news))
print(news)